import request from "../utils/request";
// import md5 from 'js-md5'

// 修改名字
// export function changeName(data){
//       return request({
//         url:'/api/chat/changeName',
//         method:'POST',
//         contentType: 'application/json; charset=utf-8',
//         data
//     })
// }

// 提交评论
export function sendDiscuss(data){
      return request({
        url:'/api/chat/send',
        method:'POST',
        contentType: 'application/json; charset=utf-8',
        data
    })
}

//展示评论(过滤)
export function viewDiscuss(data){
    if(data){
        return request({
        url:'/api/chat/view/'+data,
        method:'GET',
        })
    }else{
       return request({
        url:'/api/chat/view',
        method:'GET',
        }) 
    }
    
}


